package tools

import (
	"crypto/md5"
	"encoding/hex"
)

func Md5String(data string) string {
	md5_obj := md5.New()
	md5_obj.Write([]byte(data))
	md5Data := md5_obj.Sum([]byte(nil))
	return hex.EncodeToString(md5Data)
}
